// sioport.h

#ifndef __SIOPORT_H__
#define __SIOPORT_H__

#define FC_DTRDSR   0x01
#define FC_RTSCTS   0x02
#define FC_XONXOFF  0x04
#define ASCII_BEL   0x07
#define ASCII_BS    0x08
#define ASCII_LF    0x0A
#define ASCII_CR    0x0D
#define ASCII_XON   0x11
#define ASCII_XOFF  0x13

unsigned char Open(int nPort, int nBaud);
unsigned char Close(void);
unsigned char IsOpened(void);

int ReadData(void*, int);
int SendData(const char*, int);
int ReadDataWaiting(void);

#endif
